public class Card {
    public int rank;
    public String suit;
    public Card(int rank,String suit){
        this.rank=rank;
        this.suit=suit;
    }
public boolean equals(Object o){
        if (this==o){
            return true;
        }
    if (o == null || !(o instanceof Card)) {
        return false;
    }
    Card c = (Card)o;
    return rank == c.rank
            && suit.equals(c.suit);
}
}
